import { SetMetadata } from '@nestjs/common';

export enum UserRole {
  MANAGER = 0,
  LEADER = 1,
  EMPLOYEE = 2
}

export const ROLES_KEY = 'roles';
export const Roles = (...roles: UserRole[]) => SetMetadata(ROLES_KEY, roles); 